package com.houtai.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@ApiModel(value="培训报名信息", description="培训报名信息")
public class TdTrainApply {
    @ApiModelProperty(value="id", name="apply_id")
    private int apply_id;
    @NotNull(message = "培训ID不能为空")
    @ApiModelProperty(value="id", name="train_id")
    private int train_id;

    @NotEmpty(message = "请输入正确手机号码")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "请输入正确手机号码")
    @ApiModelProperty(value="手机号码", name="phone_no")
    private String phone_no;

    @NotEmpty(message = "请输入名字")
    @Length(max = 20, message = "名字最多20个字符")
    @ApiModelProperty(value="名字", name="name")
    private String name;
    @ApiModelProperty(value="报名时间", name="add_time")
    private Date add_time;

    public int getApply_id() {
        return apply_id;
    }

    public void setApply_id(int apply_id) {
        this.apply_id = apply_id;
    }

    public int getTrain_id() {
        return train_id;
    }

    public void setTrain_id(int train_id) {
        this.train_id = train_id;
    }

    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }
}
